package com.weakteam.orderonline.adminconsole.gwt.client.util.uploader.file;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * @author Nail
 */
public class File extends JavaScriptObject {

    protected File() {}

    /**
     * gets the filename
     *
     * @return the filename
     */
    public final native String getFileName() /*-{
        return this.name;
    }-*/;

    /**
     * gets the file size in bytes
     *
     * @return the file size in bytes
     */
    public final native int getFileSize() /*-{
        return this.size;
    }-*/;

    /**
     * gets the MIME type of the file, may be null if the browser cannot detect
     * the type
     *
     * @return the MIME type of the file
     */
    public final native String getType() /*-{
        return this.type;
    }-*/;

}
